home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12133 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  54 lines

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C Code to Pseudo Description Language Converter Needed
  5. Date: Fri, 29 Mar 1996 13:57:25 +0200
  6. Organization: Carelcomp Products
  7. Message-ID: <315BD025.1D5B@cmt.lpr.mail.carel.fi>
  8. References: <4jendc$afq@explorer.csc.com>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Frank Perez wrote:
  16. > I need to get a hold of some type of program that converts C
  17. > code to some type of Pseudo Description English-like
  18. > language.
  19.  
  20. Yeah, like this:
  21.  
  22.     #include    <stdio.h>
  23.     #include    <stdlib.h>
  24.  
  25.     int    main(void)
  26.     {
  27.         int    i;
  28.  
  29.         for (i = 0; i < 10; i++)
  30.             printf("Hello, world!\n");
  31.         return EXIT_SUCCESS;
  32.     }
  33.  
  34. would produce:
  35.  
  36.     Include the contents of file stdio.h.
  37.     Include the contents of file stdlib.h.
  38.     Set integer variable i to zero.
  39.     While i is less than 10 loop the following:
  40.         Print the text "Hello, world!" followed by a newline
  41.             to the standard output.
  42.         Increment i.
  43.     Return the success code to the operating system.
  44.  
  45. Right?
  46.  
  47. Later,
  48.  AriL
  49.     
  50. -- 
  51. All my opinions are mine and mine alone.
  52.